package com.chaihu.front.components.login;


import com.chaihu.core.context.IPageData;
import com.chaihu.front.service.login.LoginService;
import com.chaihu.front.service.sys.SysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component("login")
public class LoginPcComponent {


    @Autowired
    private LoginService loginService;
    @Autowired
    private SysService sysService;

    /**
     * 用户登录
     *
     * @param pd
     * @return
     */
    public ResponseEntity<String> doLoginPc(IPageData pd) {
        return loginService.doLoginPc(pd);
    }

    public ResponseEntity<String> getSysInfo(IPageData pd) {
        return sysService.getSysInfo(pd);
    }

}
